package com.gitee.zhanyao.single.system.service.impl;

import com.gitee.zhanyao.single.system.entity.SysMenu;
import com.gitee.zhanyao.single.system.model.MyMenu;
import com.gitee.zhanyao.single.system.repository.SysMenuRepository;
import com.gitee.zhanyao.single.system.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Transactional
@Service
public class SysMenuServiceImpl implements SysMenuService {

    @Autowired
    private SysMenuRepository sysMenuRepository;

    @Override
    public List<MyMenu> getMyMenus() {
        List<SysMenu> sysMenus = sysMenuRepository.findAllBySysMenu_Id("");

        for (SysMenu sysMenu : sysMenus) {

        }
        return null;
    }

}
